de.cebis.moccabox.io.view.table.config.xmlbeans
Class TableViewConfigurator

java.lang.Object
  extended by de.cebis.moccabox.util.AbstractConfigurator
      extended by de.cebis.moccabox.io.view.table.config.xmlbeans.TableViewConfigurator
All Implemented Interfaces:
IConfigurator

public class TableViewConfigurator
extends AbstractConfigurator

Spezialisierung des AbstractConfigurator, der die Konfiguration einer TableView übernimmt. Es wird die Spezifikation eines entsprechenden XmlAttributeConfigurationBean-Bean verwendet, das über die moccapart_x.xml definiert wird.

 <view id="table" viewhandler="de.cebis.moccabox.io.view.table.TableView">
  <configuration xsi:type="vr:tableConfiguration" configurator="de.cebis.moccabox.io.view.table.config.xmlbeans.TableViewConfigurator">
   <ipp>10</ipp>
  </configuration>
  <configuration xsi:type="vr:templateConfiguration" configurator="de.cebis.moccabox.io.view.template.config.xmlbeans.TemplateViewConfigurator">
   <template>../templates/table.ftl</template>
  </configuration>
 </view>

Author:
weichelt
See Also:
TableView

Field Summary
 
Fields inherited from class de.cebis.moccabox.util.AbstractConfigurator
log
 
Constructor Summary
TableViewConfigurator()
           
 
Method Summary
 void configure(java.lang.Object objectToConfigure)
          Konfigurieren des Objektes.
 void setSource(java.lang.Object configSource)
          Setzen des Quellobjektes, das die Konfigurationsspezifikation enthält.
 
Methods inherited from class de.cebis.moccabox.util.AbstractConfigurator
validateSourceObject, validateTargetObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableViewConfigurator

public TableViewConfigurator()
Method Detail

configure

public void configure(java.lang.Object objectToConfigure)
               throws ConfigurationException
Konfigurieren des Objektes.

Specified by:
configure in interface IConfigurator
Specified by:
configure in class AbstractConfigurator
Parameters:
objectToConfigure - Das Objekt (TableView), das konfiguriert werden soll.
Throws:
ConfigurationException - Fehler, der bei der Konfiguration aufgetreten ist. Bspw. kann die Konfigurationsquelle nicht gelesen werden oder das zu konfigurierende Objekt ist vom falschen Format.

setSource

public void setSource(java.lang.Object configSource)
               throws ConfigurationException
Setzen des Quellobjektes, das die Konfigurationsspezifikation enthält.

Specified by:
setSource in interface IConfigurator
Specified by:
setSource in class AbstractConfigurator
Parameters:
configSource - Quelle der Konfiguration.
Throws:
ConfigurationException - Fehler, der bei der Konfiguration aufgetreten ist. Bspw. kann die Konfigurationsquelle nicht gelesen werden.